import axios from '~/axios'

export function login(userName,passwordHash){
    return axios.post("/sys/base/login",{
        userName,
        passwordHash
    })
}

export function getinfo(){
    return axios.post("/sys/user/getUserInfo")
}

export function getinfos(){
    return axios.post("/sys/user/getUserInfos")
}

export function logout(){
    return axios.post("/sys/base/logout")
}

export function updatepassword(OldPassword,passwordHash,repassword){
    return axios.post("/sys/user/changePassword",{
        OldPassword,
        passwordHash,
        repassword
    })
}